package com.iflytek.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iflytek.bean.Admin;
import com.iflytek.bean.Warehouse;
import com.iflytek.mapper.AdminMapper;
import com.iflytek.mapper.WarehouseMapper;
import com.iflytek.service.AdminService;
import com.iflytek.service.WarehouseService;

@Service
public class WarehouseServiceImpl implements WarehouseService{

	@Autowired
	private WarehouseMapper warehouseMapper;
	
	
	@Override
	public List<Warehouse> selectByExample(Object object) {
		return warehouseMapper.selectByExample(null);
	}

	@Override
	public void insertSelective(Warehouse warehouse) {
		warehouseMapper.insertSelective(warehouse);
	}

	@Override
	public void deleteByPrimaryKey(Integer id) {
		warehouseMapper.deleteByPrimaryKey(id);
	}

	@Override
	public void updateByPrimaryKeySelective(Warehouse warehouse) {
		warehouseMapper.updateByPrimaryKeySelective(warehouse);
	}

	@Override
	public void updateStatus(Warehouse warehouse) {
		warehouseMapper.updateStatus(warehouse);
		
	}

}
